/**
 * @(#) City.java
 */

package TheRestaurantOwner;

public class City
{
	private String name;
	
	public City( String address )
	{
		if (!address.contains(", ")){
			System.out.println("Incorrect address format: [city], [address]");
			return;
		}
		
		name = address.substring(0, address.indexOf(", "));
	}

	public String getName( )
	{
		return name;
	}
}
